/* 首页特定样式 */

/* 轮播图样式 */
.slider-container {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 100px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev, .next {
    font-size: 1.5rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0 20px;
    transition: background-color 0.3s ease;
}

.prev:hover, .next:hover {
    background-color: rgba(200, 60, 35, 0.8);
}

.dots {
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #c83c23;
}

/* 蜀绣简介部分 */
.intro-section {
    padding: 80px 0;
    background-color: #fff;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.intro-text p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.7;
}

.intro-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 蜀绣特色部分 */
.features-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
}

/* 精品作品展示部分 */
.gallery-preview-section {
    padding: 80px 0;
    background-color: #fff;
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.overlay-content h3 {
    margin-bottom: 5px;
}

.overlay-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.view-details {
    padding: 8px 15px;
    background-color: #c83c23;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-details:hover {
    background-color: #a52c18;
}

.gallery-info {
    padding: 15px;
}

.gallery-info h3 {
    margin-bottom: 5px;
    color: #333;
}

.gallery-info p {
    color: #666;
    font-size: 0.9rem;
}

.view-more-container {
    text-align: center;
    margin-top: 40px;
}

/* 参观信息部分 */
.visit-info-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.visit-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.visit-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.visit-card:hover {
    transform: translateY(-10px);
}

.visit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: #f9f9f9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visit-icon i {
    font-size: 1.5rem;
    color: #c83c23;
}

.visit-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.visit-card p {
    color: #666;
    margin-bottom: 5px;
}

.visit-link {
    display: inline-block;
    margin-top: 10px;
    color: #c83c23;
    text-decoration: underline;
}

/* 传承人风采部分 */
.masters-section {
    padding: 80px 0;
    background-color: #fff;
}

.masters-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.master-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.master-card:hover {
    transform: translateY(-10px);
}

.master-image {
    height: 250px;
    overflow: hidden;
}

.master-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.master-card:hover .master-image img {
    transform: scale(1.1);
}

.master-info {
    padding: 20px;
}

.master-info h3 {
    margin-bottom: 5px;
    color: #333;
}

.master-title {
    color: #c83c23;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.master-info p {
    color: #666;
}

/* 参观者感言部分 */
.testimonials-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.testimonial-content {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 3rem;
    color: #f0f0f0;
    position: absolute;
    top: -20px;
    left: -10px;
    z-index: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-dots {
    text-align: center;
    margin-top: 20px;
}

.testimonial-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-dots .dot.active {
    background-color: #c83c23;
}

/* 最新活动部分 */
.events-section {
    padding: 80px 0;
    background-color: #fff;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 2px;
    height: 100%;
    background-color: #f0f0f0;
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 50px;
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    text-align: center;
}

.timeline-date span {
    display: inline-block;
    padding: 10px;
    background-color: #c83c23;
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
}

.timeline-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: #333;
}

.timeline-content p {
    color: #666;
    margin-bottom: 15px;
}

.event-link {
    color: #c83c23;
    text-decoration: underline;
}

/* 合作伙伴部分 */
.partners-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.partner-logo {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.partner-logo:hover {
    transform: translateY(-5px);
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .intro-content,
    .masters-showcase {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 80px;
    }
    
    .timeline-date {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .feature-cards,
    .gallery-preview,
    .visit-info-cards,
    .partners-logos {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slider-container {
        height: 500px;
    }
}

@media (max-width: 576px) {
    .feature-cards,
    .gallery-preview,
    .visit-info-cards,
    .masters-showcase {
        grid-template-columns: 1fr;
    }
    
    .partners-logos {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .slider-container {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-date {
        width: 60px;
    }
    
    .timeline-date span {
        font-size: 0.8rem;
        padding: 5px;
    }
}